package com.test.udp.thread.run;

import com.test.udp.thread.TalkReceive;
import com.test.udp.thread.TalkSend;

/**
 * 使用多线程,实现双向交流
 * <p>
 * 接收端
 *
 * @create: 2019-05-28 23:04
 **/
public class TalkTeacher {
    public static void main(String[] args) {
        //接收
        new Thread(new TalkReceive(9999, "张三")).start();

        //发送
        new Thread(new TalkSend(7777, "localhost", 6666)).start();
    }
}
